package com.yunhai.api.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.yunhai.common.core.controller.BaseController;
import com.yunhai.common.core.domain.AjaxResult;
import com.yunhai.system.domain.ProductType;
import com.yunhai.system.domain.TimeLine;
import com.yunhai.system.service.TimeLineService;
import org.apache.commons.collections4.MapUtils;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.Map;

/**
 * 发展历程
 *
 * @author jxj
 * @since 2021-01-09 17:53:32
 */
@RestController
@RequestMapping("/api/timeLine")
public class TimeLineController extends BaseController {
    @Resource
    private TimeLineService timeLineService;

    /**
     * 发展历程
     *
     * @return
     */
    @GetMapping("list")
    public AjaxResult selectAll() {
        QueryWrapper<TimeLine> timeLineQueryWrapper = new QueryWrapper<>();
        timeLineQueryWrapper.orderByDesc("date_time");
        return AjaxResult.success(timeLineService.list(timeLineQueryWrapper));
    }


}
